// 1. 导入vue和vuex
import Vue from 'vue'
import Vuex from 'vuex'
import moduleCart from '@/store/cart.js'
import userInfo from '@/store/user.js'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    // 'm_cart': moduleCart
    moduleCart,
    userInfo
  }
})

export default store
